<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>数组输入框组件</title>

    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.0"></script>
</head>

<body>
    <div id="app">
        <input-number v-model="value" :min="0" :max="10"></input-number>

        <p>父组件中value:  {{value}}</p>
        <button @click="value--">-</button>
        <button @click="value++">+</button>
    </div>
</body>
<script src="input-number.js"></script>
<script src="index.js"></script>
</html>